package com.codebattery.service;


import com.codebattery.domain.entity.Member;
import com.codebattery.domain.entity.MemberReceiveAddress;
import com.codebattery.domain.model.UserLoginInfo;
import com.codebattery.repository.BaseRepository;
import com.codebattery.repository.MemberReceiveAddressRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;


@Service
public class MemberReceiveAddressService extends BaseService<MemberReceiveAddress, Long>{
    private static final Logger LOGGER = LoggerFactory.getLogger(MemberReceiveAddressService.class);

    @Resource
    private MemberReceiveAddressRepository repository;


    public void createMember(MemberReceiveAddress memberReceiveAddress){
        repository.save(memberReceiveAddress);
    }

    @Override
    public BaseRepository<MemberReceiveAddress, Long> repository() {
        return repository;
    }

}
